
import request from '@/router/axios'

export function fetchLabelTree() {
  return request({
    url: '/admin/label/tree',
    method: 'get'
    // params: quer
  })
}

export function getNowlabel() {
  return request({
    url: '/admin/label/getAll',
    method: 'get'
  })
}

export function getObj(id) {
  return request({
    url: '/admin/label/getObj/' + id,
    method: 'get'
  })
}

export function addObj(obj) {
  return request({
    url: '/admin/label/',
    method: 'post',
    data: obj
  })
}

export function edit(obj) {
  return request({
    url: '/admin/label/',
    method: 'put',
    data: obj
  })
}

export function remove(obj) {
  return request({
    url: '/admin/label/',
    method: 'delete',
    data: obj
  })
}
